package com.peng.crm.commons.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 此类用来跳转WEB-INF下的jsp页面(页面跳转器)
 */
@Controller
@RequestMapping("/jump")
public class JumpController {

    /**
     * @return  转发到登陆页面
     */
    @RequestMapping("/login")
    public String login(){
        return "pages/login";
    }

    /**
     *
     * @return  转发到主页
     */
    @RequestMapping("/main/index")
    public String main(){
        return "pages/workbench/main/index";
    }


    /**
     * 权限主页
     * @return
     */
    @RequestMapping("/settings/qx/index")
    public String qxindex(){
        return "pages/settings/qx/index";
    }

    /**
     * 权限许可维护主页
     * @return
     */
    @RequestMapping("/settings/qx/permission/index")
    public String qxPermissionIndex(){
        return "pages/settings/qx/permission/index";
    }

    /**
     * 权限角色维护主页
     * @return
     */
    @RequestMapping("/settings/qx/role/index")
    public String qxRoleIndex(){
        return "pages/settings/qx/role/index";
    }

    /**
     * 权限用户维护主页
     * @return
     */
    @RequestMapping("/settings/qx/user/index")
    public String qxUserIndex(){
        return "pages/settings/qx/user/index";
    }

    /**
     * 系统设置
     * @return
     */
    @RequestMapping("/settings/index")
    public String settingsIndex(){
        return "pages/settings/index";
    }

    /**
     * 用户维护主页
     * @return
     */
    @RequestMapping("/workbench/index")
    public String workbenchIndex(){
        return "pages/workbench/index";
    }

    /**
     * 字典表页面
     * @return
     */
    @RequestMapping("/dictionary/index")
    public String dictionaryIndex(){
        return "pages/settings/dictionary/index";
    }

    /**
     * 字典类型内敛页面
     */
    @RequestMapping("/type/index")
    public String typeIndex(){
        return "pages/settings/dictionary/type/index";
    }

    /**
     * 字典值内敛页面
     */
    @RequestMapping("/value/index")
    public String valueIndex(){
        return "pages/settings/dictionary/value/index";
    }

    /**
     * 市场活动页面
     */
    @RequestMapping("/workbench/activity/index")
    public String activityIndex(){
        return "pages/workbench/activity/index";
    }

    /**
     * 线索index页面
     */
    @RequestMapping("/workbench/clue/index")
    public String clueIndex(){
        return "pages/workbench/clue/index";
    }

    /**
     * 线索detail详情页面
     */
    @RequestMapping("/workbench/clue/detail")
    public String clueDetail(){
        return "pages/workbench/clue/detail";
    }

    /**
     *线索convert页面
     */
    @RequestMapping("/workbench/clue/convert")
    public String clueConvert(){
        return "pages/workbench/clue/convert";
    }

    /**
     * 客户index页面
     */
    @RequestMapping("/workbench/customer/index")
    public String customerIndex(){
        return "pages/workbench/customer/index";
    }

    /**
     * 联系人contacts页面
     */
    @RequestMapping("/workbench/contacts/index")
    public String contactsIndex(){
        return "pages/workbench/contacts/index";
    }
}
